package com.cqcomponents.components;

import com.cqcomponents.annotations.JcrPropertyInjection;

public class Page extends BaseComponent {

	private String theme;
	private String title;

	public String getLanguage() {
		return "en";
	}

	@Override
	public boolean getHasContent() {
		return true;
	}

	@JcrPropertyInjection(name = "jcr:title")
	public void setTitle(String title) {
		this.title = title;
	}

	@JcrPropertyInjection
	public void setTheme(String theme) {
		this.theme = theme;
	}

	public String getTheme() {
		return this.theme;
	}

	public String getTitle() {
		return this.title;
	}

	@Override
	public String toString() {
		return "Page={title:" + this.title + ", theme: " + this.theme + "}";
	}

}
